package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ex-kuangxiaomin101 on 2016-02-19.
 */
public class AccountDetailBean implements Parcelable {

    private String money; //金额
    private String type;//1表示收入  2表示提现
    private String time;//时间
    private String status;//0申请中  1成功  2失败

    public static final String TYPE_INCOME = "1";//帐户收入
    public static final String TYPE_WITHDRAW = "2";//账户提现

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.money);
        dest.writeString(this.type);
        dest.writeString(this.time);
        dest.writeString(this.status);
    }

    public AccountDetailBean() {
    }

    protected AccountDetailBean(Parcel in) {
        this.money = in.readString();
        this.type = in.readString();
        this.time = in.readString();
        this.status = in.readString();
    }

    public static final Parcelable.Creator<AccountDetailBean> CREATOR = new Parcelable.Creator<AccountDetailBean>() {
        public AccountDetailBean createFromParcel(Parcel source) {
            return new AccountDetailBean(source);
        }

        public AccountDetailBean[] newArray(int size) {
            return new AccountDetailBean[size];
        }
    };

    @Override
    public String toString() {
        return "AccountDetailBean{" +
                "money='" + money + '\'' +
                ", type='" + type + '\'' +
                ", time='" + time + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
